let some: any = "string";
let str1 = (some as string).length;
let str2 = (<string>some).length;

let maybeString: string | undefined = "hello";
let definedString = maybeString!;

let a: string | undefined = "abc12345";
console.log(a.slice(-3));

type vox = {
  a: string;
};
function getVow(num: number): vox | string {
  if (num % 2 === 1) {
    return {
      a: "cehsi",
    } as vox;
  } else return "s";
}

const inputDom = document.querySelector("input");
